﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;

namespace Himp.Platform
{
    /// <summary>
    /// 属性字典
    /// </summary>
    public class AttrDict : AuditedAggregateRoot<Guid>, IMultiTenant, ISoftDelete
    {
        /// <summary>
        /// 属性字典代码
        /// </summary>
        public string AttrDictCode { get; set; }

        /// <summary>
        /// 属性字典名称
        /// </summary>
        public string AttrDictName { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int SrtNo { get; set; }

        /// <summary>
        /// 分类编码
        /// </summary>
        public string CatgeCodg { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        public int Ver { get; set; }

        /// <summary>
        /// 拼音助记码
        /// </summary>
        public string? Pinyincode { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string? Descr { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

        public AttrDict(string attrDictCode, string attrDictName
            , string catgeCodg, int srtNo)
        {
            AttrDictCode = attrDictCode;
            AttrDictName = attrDictName;
            CatgeCodg = catgeCodg;
            SrtNo = srtNo;
            Pinyincode = string.Empty;
        }
    }
}
